import styles from './index.module.scss'
import classNames from 'classnames'
const EditList = ({ listVisibleClose, config, type }) => {
  return (
    <div className={styles.root}>
      {(config[type] || []).map((item) => {
        return (
          <div
            key={item.title}
            className={classNames('list-item')}
            onClick={item.onClick}>
            {item.title}
          </div>
        )
      })}

      <div className='list-item' onClick={listVisibleClose}>
        取消
      </div>
    </div>
  )
}
export default EditList
